mir: Update cursor position
authorWilliam Hua <william.hua@canonical.com>
Wed, 20 May 2015 14:47:44 +0000 (09:47 -0500)
committerWilliam Hua <william.hua@canonical.com>
Tue, 2 Jun 2015 19:14:26 +0000 (15:14 -0400)
gdk/mir/gdkmireventsource.c

index a598fe555762d9d8941769f8e7fa095767b7f9ae..5b55254f97c784362ff29809c964258e149a0eb2 100644 (file)
@@ -383,7 +383,11 @@ handle_motion_event (GdkWindow *window, const MirInputEvent *event)
           if (hscroll > 0.5 || vscroll > 0.5)
             generate_scroll_event (window, x, y, hscroll, vscroll, modifier_state, event_time);
           if (ABS (new_x - x) > 0.5 || ABS (new_y - y) > 0.5)
-            generate_motion_event (window, new_x, new_y, modifier_state, event_time);
+            {
+              generate_motion_event (window, new_x, new_y, modifier_state, event_time);
+              x = new_x;
+              y = new_y;
+            }
 
           break;
         case mir_pointer_action_leave: